import ms from 'ms';
import lunchtime from './lunchtime';
import millisecondsUntil from './millisecondsUntil';

export default function howLongUntilLunch(hours, minutes) {
    if (hours === undefined) hours = 12;
    if (minutes === undefined) minutes = 30;

    let millisecondsUntilLunchTime = millisecondsUntil(lunchtime(hours, minutes));
    return ms(millisecondsUntilLunchTime, {long: true});
}
